
#ifndef _BAT_H_DJLDJLSJFLJDLF2423423432
#define _BAT_H_DJLDJLSJFLJDLF2423423432

#include "CH59x_common.h"   //#include "ch32f20x.h"


extern uint8_t bat_per; 

void bat_adc_init(void);

int16_t bat_get_val(void);
uint8_t bat_get_per(int16_t adc);

#endif
